package cn.com.surker.experiment.dao;

import cn.com.surker.experiment.entity.ExperimentCompression;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 抗压强度记录表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2021-11-30
 */
public interface ExperimentCompressionDao extends BaseMapper<ExperimentCompression> {

    Integer updateCom(Double destroyLoad, Double comValue, Integer type, Long cid, String code);

    /**
     * 获取分组试验值
     * @param cid
     * @return
     */
    List<Map<String, Object>> findGroupRecord(Long cid);

    /**
     * 作废试验记录
     * @param type 凝期
     * @param cid 试件ID
     * @return
     */
    Integer cancelCom(Integer type, Long cid);
}
